package com.gameplatform.model;

import java.util.Date;


//评分代码

public class Rating {
    private int id;
    private int gameId;
    private int userId;
    private int rating;
    private Date createTime;

    // 构造函数
    public Rating() {}

    public Rating(int gameId, int userId, int rating) {
        this.gameId = gameId;
        this.userId = userId;
        this.rating = rating;
    }

    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }

    public int getGameId() { return gameId; }
    public void setGameId(int gameId) { this.gameId = gameId; }

    public int getUserId() { return userId; }
    public void setUserId(int userId) { this.userId = userId; }

    public int getRating() { return rating; }
    public void setRating(int rating) { this.rating = rating; }

    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }
}